package com.naiterui.ehp.bs.patient.repository;

import org.springframework.stereotype.Repository;

import com.naiterui.common.repository.core.BaseJpaRepository;
import com.naiterui.ehp.bp.domain.Attend;
import com.naiterui.ehp.bp.domain.AttendPK;

/**
 * <pre>
 *
 * </pre>
 *
 * @author fangguanhong
 * @date 2020/4/15 上午11:35
 * @since 1.0.0
 */
@Repository
public interface IApAttendRepository extends BaseJpaRepository<Attend, AttendPK> {

    Integer countByAttendPKPatientIdAndAttendPKDoctorId(Long patientId, Long doctorId);

    void deleteByAttendPKPatientIdAndAttendPKDoctorId(Long patientId, Long doctorId);
}
